import request from '@/utils/request'
// 初始化获取数据
export const getPermissionList = () => request.get('/sys/permission')

// 添加

export const addPermission = data => request.post('/sys/permission', data)

// 删除
export const delPermission = id => request.delete('/sys/permission/' + id)

// 编辑回显
export const getPermission = id => request.get('/sys/permission/' + id)

// 确认编辑
export const updatePermission = data => request.put('/sys/permission/' + data.id, data)

export const assignPrem = data => request.put('/sys/role/assignPrem', data)
